<?php if (Yii::app()->session["member_level"] != "admin" and Yii::app()->session["member_id"] == NULL): 
echo $this->redirect(Yii::app()->homeUrl);
endif; ?>
<div class="panel">
    <?php echo $this->beginContent("/report/Toolbar", array("current" => 4)); ?>
    <?php echo $this->endContent(); ?>

    <div class="panel_body">
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'index',   
    'dataProvider' => $dataProvider,   
    'enablePagination' => true,   
    'columns' => array(   
        array(
            'name' => 'product_name_eng',
            'header' => 'สินค้า',
        ),
        array(
            'name' => 'totalQty',
            'header' => 'จำนวน',
        ),
	array(
            'name' => 'costtotal',
            'header' => 'ยอดเงินรวม',
        ),
    ),
));
?>
    </div>
</div>